const app = getApp();
const baseURL = app.globalData.baseURL
Page({
  data: {
    list: []
  },
  toDoEvaluate(e) {
    wx.navigateTo({
      url: `/pages/doEvaluate/doEvaluate?coachId=${e.target.dataset.coachId}&reservationId=${e.target.dataset.reservationId}`,
    })
  },
  onLoad() {
    wx.request({
      url: `${baseURL}/orders/reservation/getWithCoachAndCourse`,
      method: 'POST',
      header: {
        "Authorization": 'Bearer ' + wx.getStorageSync('token')
      },
      success: (res) => {
        this.setData({
          list: res.data.data
        })
      }
    })
  }
})